import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
public class Classroom {
    private String className;
    private List<Group> groups;

    public Classroom(String className) {
        this.className = className;
        this.groups = new ArrayList<>();
    }

    public void addGroup(Group group) {
        groups.add(group);
    }

    public List<Group> getGroups() {
        return groups;
    }

    public String getClassName() {
        return className;
    }

    @Override
    public String toString() {
        return "Classroom{name='" + className + "', groups=" + groups + "}";
    }
}
